package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.UserInfo;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

//用户持久化操作接口
public interface UserInfoRepsitory extends MongoRepository<UserInfo, String> {

    //查询目的地下用户
     List<UserInfo> findByCity(String name);

    //判断手机号码是否存在
    UserInfo findByPhone(String phone);

}
